<!-- on afiche le debut les formulaires pour tout les formulaires du forum -->
<!-- on afiche le debut du formulaire pour un nouveau topic -->
<?php

      if(isset($type))
	  {
	 	 if($type == 'bbcode_courant')
	  	 {
			if(!isset($_tab['action']))
				$_tab['action'] = $_SERVER['REQUEST_URI'];
?>
      <form id="bbcode_form" method="post" action="<?php echo $_tab['action']; ?>" enctype="multipart/form-data" name="formulaire">


<?php

 if(isset($_tab['sujet']))
	  {

?>

	 <div class="formulaire">
	  <div class="formulaire_left"> Sujet :</div>
	  <div class="formulaire_right">

      <input type="text" value="" id="bbcode_sujet" name="bbcode_sujet">
	  </div></div>
	  <div class="formulaire">
	  <div class="formulaire_left">Icône :</div>
	  <div class="formulaire_right">
  
	  <input type="radio" name="ico" value="huh" checked="checked"/><img src="../design/<?php echo getDesignName(); ?>/images/smileys/topic/huh.png"/>
	  <input type="radio" name="ico" value="attention" /><img src="../design/<?php echo getDesignName(); ?>/images/smileys/topic/attention.gif"/>
	  <input type="radio" name="ico" value="bad" /><img src="../design/<?php echo getDesignName(); ?>/images/smileys/topic/bad.gif"/>
	  <input type="radio" name="ico" value="decu" /><img src="../design/<?php echo getDesignName(); ?>/images/smileys/topic/decu.gif"/>
      <input type="radio" name="ico" value="fache" /><img src="../design/<?php echo getDesignName(); ?>/images/smileys/topic/fache.gif"/>
	  <input type="radio" name="ico" value="good" /><img src="../design/<?php echo getDesignName(); ?>/images/smileys/topic/good.gif"/>
	  <input type="radio" name="ico" value="pleure" /><img src="../design/<?php echo getDesignName(); ?>/images/smileys/topic/pleure.gif"/>
	  <input type="radio" name="ico" value="question" /><img src="../design/<?php echo getDesignName(); ?>/images/smileys/topic/question.gif"/>
	  <input type="radio" name="ico" value="sourire" /><img src="../design/<?php echo getDesignName(); ?>/images/smileys/topic/sourire.gif"/>
	  <input type="radio" name="ico" value="sweatdrop" /><img src="../design/<?php echo getDesignName(); ?>/images/smileys/topic/sweatdrop.gif"/>
	  
</div></div>

<?php

      }
	  else if(isset($_tab['sujetValue']))
	  {

 ?>
 


	  Titre :
	  

<?php echo $_tab['sujetValue']; 
	} 


      if(isset($_tab['type']) && isset($_SESSION['id']) && (id2level($_SESSION['id'])==ADMIN or id2level($_SESSION['id'])==MODO))
	  {
	  

echo '<div class="formulaire">
	  <div class="formulaire_left">Type du topic :</div>
	  <div class="formulaire_right">

      <select name="topic_type">
	  <option value="1">Annonce</option>
	  <option value="2" selected="selected">Normal</option>
	  </select>
	  </div></div>';

	  }else

echo '<input type="hidden" name="topic_type" value="2" />';

      if(isset($_tab['other']))
	  {
echo $_tab['other']."\n";
      }

?>

<?php

      if(isset($_tab['textareaLabel']))
	  {
		echo $_tab['textareaLabel'];
      }
	  else


      $name = (isset($_tab['textareaName'])) ? $_tab['textareaName'] : "bbcode_courant";
	  $id = (isset($_tab['textareaName'])) ? "bbcode_".$_tab['textareaName'] : "bbcode_courant";

?>


      <div class="formulaire">
	  <div class="formulaire_left">Mise en forme :</div>
	  <div class="formulaire_pointiller_right">

<?php

      if(!isset($_tab['miseEnForme']['gras']) || ($_tab['miseEnForme']['gras'] == true || (isset($_tab['miseEnForme']['*']) && $_tab['miseEnForme']['*']==true)))
	  {

?>


	  
      <input type="image" src="../design/<?php echo getDesignName(); ?>/images/formulaires/gras.png" onclick="javascript:bbcode('&lt;gras&gt;', '&lt;/gras&gt;','<?php echo $id; ?>');return(false)" class="Gras" alt="Gras" title="Gras" />

<?php

      } 

      if(!isset($_tab['miseEnForme']['italique']) || ($_tab['miseEnForme']['italique'] == true || (isset($_tab['miseEnForme']['*']) && $_tab['miseEnForme']['*']==true)))
	  {

?>

      <input type="image" src="../design/<?php echo getDesignName(); ?>/images/formulaires/italique.png" onclick="javascript:bbcode('&lt;italique&gt;', '&lt;/italique&gt;','<?php echo $id; ?>');return(false)" class="italique" alt="Italique" title="Italique" />

<?php

      }
	  if(!isset($_tab['miseEnForme']['souligner']) || ($_tab['miseEnForme']['souligner'] == true || (isset($_tab['miseEnForme']['*']) && $_tab['miseEnForme']['*']==true)))
	  {

?>

      <input type="image" src="../design/<?php echo getDesignName(); ?>/images/formulaires/souligner.png" onclick="javascript:bbcode('&lt;souligner&gt;', '&lt;/souligner&gt;','<?php echo $id; ?>');return(false)" class="souligner" alt="Souligner" title="Souligner" />

<?php

      }
	  if(!isset($_tab['miseEnForme']['barrer']) || ($_tab['miseEnForme']['barrer'] == true || (isset($_tab['miseEnForme']['*']) && $_tab['miseEnForme']['*']==true)))
	  {

?>

      <input type="image" src="../design/<?php echo getDesignName(); ?>/images/formulaires/barrer.png" onclick="javascript:bbcode('&lt;barrer&gt;', '&lt;/barrer&gt;','<?php echo $id; ?>');return(false)" class="barrer" alt="Barrer" title="Barrer" />

<?php

      }
	  if(!isset($_tab['miseEnForme']['image']) || ($_tab['miseEnForme']['image'] == true || (isset($_tab['miseEnForme']['*']) && $_tab['miseEnForme']['*']==true)))
	  {

?>
      <input type="image" src="../design/<?php echo getDesignName(); ?>/images/formulaires/image.png" onclick="javascript:bbcode('&lt;image&gt;', '&lt;/image&gt;','<?php echo $id; ?>');return(false)" alt="Image" title="Image" />

<?php

      }
      if(!isset($_tab['miseEnForme']['lien']) || ($_tab['miseEnForme']['lien'] == true || (isset($_tab['miseEnForme']['*']) && $_tab['miseEnForme']['*']==true)))
	  {

?>

      <input type="image" src="../design/<?php echo getDesignName(); ?>/images/formulaires/lien.png" onclick="javascript:bbcode('&lt;lien&gt;', '&lt;/lien&gt;','<?php echo $id; ?>');return(false)" alt="Lien" title="Lien" />	

<?php

      }
	  if(!isset($_tab['miseEnForme']['citation']) || ($_tab['miseEnForme']['citation'] == true || (isset($_tab['miseEnForme']['*']) && $_tab['miseEnForme']['*']==true)))
	  {

?>

      <input type="image" src="../design/<?php echo getDesignName(); ?>/images/formulaires/citation.png" onclick="javascript:bbcode('&lt;citation=AUTEUR&gt;', '&lt;/citation&gt;','<?php echo $id; ?>');return(false)" alt="Citation" title="Citation" />

<?php

      }
	  if(!isset($_tab['miseEnForme']['liste_puce']) || ($_tab['miseEnForme']['liste_puce'] == true || (isset($_tab['miseEnForme']['*']) && $_tab['miseEnForme']['*']==true)))
	  {

?>

      <input type="image" src="../design/<?php echo getDesignName(); ?>/images/formulaires/liste.png" onclick="javascript:bbcode('&lt;liste&gt;&lt;puce&gt;', '','<?php echo $id; ?>');return(false)" title="liste puce" alt="liste puce" />

<?php

      }
	  if(!isset($_tab['miseEnForme']['liste_numero']) || ($_tab['miseEnForme']['liste_numero'] == true || (isset($_tab['miseEnForme']['*']) && $_tab['miseEnForme']['*']==true)))
	  {

?>

      <input type="image" src="../design/<?php echo getDesignName(); ?>/images/formulaires/liste.png" onclick="javascript:bbcode('&lt;liste&gt;&lt;numero&gt;', '','<?php echo $id; ?>');return(false)" title="liste numero" alt="liste numero" />

<?php

      }
	  if(!isset($_tab['miseEnForme']['mail']) || ($_tab['miseEnForme']['mail'] == true || (isset($_tab['miseEnForme']['*']) && $_tab['miseEnForme']['*']==true)))
	  {

?>

      <input type="image" src="../design/<?php echo getDesignName(); ?>/images/formulaires/mail.png" onclick="javascript:bbcode('&lt;mail&gt;', '&lt;/mail&gt;','<?php echo $id; ?>');return(false)" alt="Mail" title="Mail" />

<?php

      }
	  if(!isset($_tab['miseEnForme']['secret']) || ($_tab['miseEnForme']['secret'] == true || (isset($_tab['miseEnForme']['*']) && $_tab['miseEnForme']['*']==true)))
	  {

?>

      <input type="image" src="../design/<?php echo getDesignName(); ?>/images/formulaires/secret.png" onclick="javascript:bbcode('&lt;secret&gt;', '&lt;/secret&gt;','<?php echo $id; ?>');return(false)" alt="Secret" title="Secret" />


<?php

      }
	  if(!isset($_tab['miseEnForme']['tableau']) || ($_tab['miseEnForme']['tableau'] == true || (isset($_tab['miseEnForme']['*']) && $_tab['miseEnForme']['*']==true)))
	  {

?>

      <input type="image" src="../design/<?php echo getDesignName(); ?>/images/formulaires/tableau.png" onclick="javascript:bbcode('&lt;tableau&gt;', '&lt;/tableau&gt;','<?php echo $id; ?>');return(false)" alt="Tableau" title="Tableau" />

<?php

      }
	  if(!isset($_tab['miseEnForme']['video']) || ($_tab['miseEnForme']['video'] == true || (isset($_tab['miseEnForme']['*']) && $_tab['miseEnForme']['*']==true)))
	  {

?>

      <input type="image" src="../design/<?php echo getDesignName(); ?>/images/formulaires/video.png" onclick="javascript:bbcode('&lt;video&gt;', '&lt;/video&gt;','<?php echo $id; ?>');return(false)" alt="Video" title="Video" />

<?php

      }
	  if(!isset($_tab['miseEnForme']['information']) || ($_tab['miseEnForme']['information'] == true || (isset($_tab['miseEnForme']['*']) && $_tab['miseEnForme']['*']==true)))
	  {

?>

      </div>
	  <div class="formulaire_pointiller_right">

      <input type="image" src="../design/<?php echo getDesignName(); ?>/images/formulaires/information.png" onclick="javascript:bbcode('&lt;information&gt;', '&lt;/information&gt;','<?php echo $id; ?>');return(false)" alt="Information" title="Information" />

<?php

      }
	  if(!isset($_tab['miseEnForme']['attention']) || ($_tab['miseEnForme']['attention'] == true || (isset($_tab['miseEnForme']['*']) && $_tab['miseEnForme']['*']==true)))
	  {

?>

      <input type="image" src="../design/<?php echo getDesignName(); ?>/images/formulaires/attention.png" onclick="javascript:bbcode('&lt;attention&gt;', '&lt;/attention&gt;','<?php echo $id; ?>');return(false)" alt="Attention" title="Attention" />

<?php

      }
	  if(!isset($_tab['miseEnForme']['erreur']) || ($_tab['miseEnForme']['erreur'] == true || (isset($_tab['miseEnForme']['*']) && $_tab['miseEnForme']['*']==true)))
	  {

?>

      <input type="image" src="../design/<?php echo getDesignName(); ?>/images/formulaires/erreur.png" onclick="javascript:bbcode('&lt;erreur&gt;', '&lt;/erreur&gt;','<?php echo $id; ?>');return(false)" alt="Erreur" title="Erreur" />

<?php

      }
	  if(!isset($_tab['miseEnForme']['question']) || ($_tab['miseEnForme']['question'] == true || (isset($_tab['miseEnForme']['*']) && $_tab['miseEnForme']['*']==true)))
	  {

?>

      <input type="image" src="../design/<?php echo getDesignName(); ?>/images/formulaires/question.png" onclick="javascript:bbcode('&lt;question&gt;', '&lt;/question&gt;','<?php echo $id; ?>');return(false)" alt="Question" title="Question" />


<?php
      }

?>

      </div>
	  <div class="formulaire_pointiller_right1">


<?php

      if(!isset($_tab['select']['position']) || $_tab['select']['position'] == true || (isset($_tab['select']['*']) && $_tab['select']['*']==true))
	  {

?>


      <select title="position" name="position" onchange="javascript: bbcode('&lt;' + this.value + '&gt;','&lt;/position&gt;','<?php echo $id; ?>'); this.selectedIndex = 0;">
	  <option style="font-weight: bold;" class="position_titre" selected="selected">Position</option>
	  <option value="position valeur = gauche">Gauche</option>
	  <option value="position valeur = centrer">Centrer</option>
	  <option value="position valeur = droite">Droite</option>
	  <option value="position valeur = justifier">Justifier</option>
	  </select>

<?php

      }
	  if(!isset($_tab['select']['flottant']) || $_tab['select']['flottant'] == true || (isset($_tab['select']['*']) && $_tab['select']['*']==true))
	  {

?>

      <select title="flottant" name="flottant" onchange="javascript: bbcode('&lt;' + this.value + '&gt;','&lt;/flottant&gt;','<?php echo $id; ?>'); this.selectedIndex = 0;">
	  <option style="font-weight: bold;" class="position_titre" selected="selected">Flottant</option>
	  <option value="flottant valeur = A droite">A droite</option>
	  <option value="flottant valeur = A gauche">A gauche</option>
	  </select>

<?php

      }
	  if(!isset($_tab['select']['taille']) || $_tab['select']['taille'] == true || (isset($_tab['select']['*']) && $_tab['select']['*']==true))
	  {

?>

      <select title="taille" name="taille" onchange="javascript: bbcode('&lt;' + this.value + '&gt;','&lt;/taille&gt;','<?php echo $id; ?>'); this.selectedIndex = 0;">
	  <option style="font-weight: bold;" class="taille_titre" selected="selected">Taille</option>
	  <option value="taille valeur = ttgrand">Trés trés grand</option>
	  <option value="taille valeur = tgrand">Trés grand</option>
	  <option value="taille valeur = grand">Grand</option>
	  <option value="taille valeur = petit">Petit</option>
	  <option value="taille valeur = tpetit">Trés petit</option>
	  <option value="taille valeur = ttpetit">Trés trés petit</option>
	  </select>

<?php

      }
	  if(!isset($_tab['select']['couleur']) || $_tab['select']['couleur'] == true || (isset($_tab['select']['*']) && $_tab['select']['*']==true))
	  {

?>

      <select title="Couleur" name="Couleur" onchange="javascript: bbcode('&lt;' + this.value + '&gt;','&lt;/couleur&gt;','<?php echo $id; ?>'); this.selectedIndex = 0;">
	  <option style="font-weight: bold;" value="couleur_titre" selected="selected">Couleur</option>
	  <option style="color:#000000;" value="couleur nom = noir">Noir</option>
	  <option style="color:#000099;" value="couleur nom = bleu">Bleu</option>
	  <option style="color:#162277" value="couleur nom = bleu foncé">Bleu Foncé</option>
	  <option style="color:#A52A2A;" value="couleur nom = marron">Marron</option>
	  <option style="color:#757575;" value="couleur nom = gris">Gris</option>
	  <option style="color:#404040;" value="couleur nom = gris foncé">Gris Foncé</option>
	  <option style="color:#808080;" value="couleur nom = gris clair">Gris Clair</option>
	  <option style="color:#FFD700;" value="couleur nom = or">Or</option>
	  <option style="color:#FF0000;" value="couleur nom = rouge">Rouge</option>
	  <option style="color:#177531;" value="couleur nom = vert foncé">Vert Foncé</option>
	  <option style="color:#33CC00;" value="couleur nom = vert">Vert</option>
	  <option style="color:#ff88f8;" value="couleur nom = rose">Rose</option>
	  <option style="color:#CCCCCC;" value="couleur nom = argent">Argent</option>
	  <option style="color:#FFFF00;" value="couleur nom = jaune">Jaune</option>
	  <option style="color:#F73DF7;" value="couleur nom = fushia">Fushia</option>
	  <option style="color:#CC33CC;" value="couleur nom = violet">Violet</option>
	  <option style="color:#A7A700;" value="couleur nom = olive">Olive</option>
	  <option style="color:#66FFFF;" value="couleur nom = azur">Azur</option>
	  <option style="color:#FFC800;" value="couleur nom = orange">Orange</option>
	  <option style="color:navy;" value="couleur nom = marine">Marine</option>
	  <option style="color:aqua;" value="couleur nom = turquoise">Turquoise</option>
	  </select>

<?php

      }
	  if(!isset($_tab['select']['police']) || $_tab['select']['police'] == true || (isset($_tab['select']['*']) && $_tab['select']['*']==true))
	  {

?>

      <select title="police" name="police" onchange="javascript: bbcode('&lt;' + this.value + '&gt;','&lt;/police&gt;','<?php echo $id; ?>'); this.selectedIndex = 0;">
	  <option style="font-weight: bold;" class="police_titre" selected="selected">Police</option>
	  <option value="police valeur = arial">Arial</option>
	  <option value="police valeur = times">Times</option>
	  <option value="police valeur = courrier">Courrier</option>
	  <option value="police valeur = impact">Impact</option>
	  <option value="police valeur = geneva">Geneva</option>
	  <option value="police valeur = optima">Optima</option>
	  </select>

<?php

      }
	  if(!isset($_tab['select']['semantique']) || $_tab['select']['semantique'] == true || (isset($_tab['select']) && $_tab['select']['*']==true))
	  {

?>

      <select title="semantique" name="semantique" onchange="javascript: bbcode('&lt;'+this.value+'&gt;','&lt;/'+this.value+'&gt;','<?php echo $id; ?>'); this.selectedIndex = 0;">
	  <option style="font-weight: bold;" class="taille_titre" selected="selected">Sémantique</option>
	  <option value="titre1">Titre 1</option>
	  <option value="titre2">Titre 2</option>
	  </select>

      </div></div>

<?php

      }
	  
	  if(!isset($_tab['select']['code']) || $_tab['select']['code'] == true || (isset($_tab['select']) && $_tab['select']['*']==true))
	  {

?>

  	  <div class="formulaire">
	  <div class="formulaire_left">Colorisation syntaxique :</div>
	  <div class="formulaire_right">

      <select title="code" name="code" onchange="javascript: bbcode('&lt;'+this.value+'&gt;','&lt;/code&gt;','<?php echo $id; ?>'); this.selectedIndex = 0;">

<?php

      $codesAvailable = array("Actionscript" => "code type = actionscript",
	  "ADA" => "code type = ada",
	  "Apache Log" => "code type = apache",
	  "AppleScript" => "code type = applescript",
	  "ASM" => "code type = asm",
	  "ASP" => "code type = asp",
	  "AutoIT" => "code type = autoit",
	  "Bash" => "code type = bash",
	  "BlitzBasic" => "code type = blitzbasic",
	  "C" => "code type = c",
	  "C for Macs" => "code type = c_mac",
	  "C#" => "code type = csharp",
	  "C++" => "code type = cpp",
	  "CAD DCL" => "code type = caddcl",
	  "CadLisp" => "code type = cadlisp",
	  "CFDG" => "code type = cfdg",
	  "ColdFusion" => "code type = cfm",
	  "CSS" => "code type = css",
	  "Delphi" => "code type = delphi",
	  "DIV" => "code type = div",
	  "DOS" => "code type = dos",
	  "Eiffel" => "code type = eiffel",
	  "Fortran" => "code type = fortran",
	  "FreeBasic" => "code type = freebasic",
	  "GML" => "code type = gml",
	  "HTML" => "code type = html4strict",
	  "Inno" => "code type = inno",
	  "Java" => "code type = java",
	  "Java 5" => "code type = java5",
	  "Javascript" => "code type = javascript",
	  "Lisp" => "code type = lisp",
	  "Lua" => "code type = lua",
	  "Microprocessor ASM" => "code type = mpasm",
	  "MySQL" => "code type = mysql",
	  "NSIS" => "code type = nsis",
	  "Objective C" => "code type = objc",
	  "OCaml" => "code type = ocaml",
	  "OpenOffice BASIC" => "code type = oobas",
	  "Oracle 8 SQL" => "code type = oracle8",
	  "Pascal" => "code type = pascal",
	  "Perl" => "code type = Perl",
	  "PHP" => "code type = php",
	  "Python" => "code type = python",
	  "Q(uick)BASIC" => "code type = qbasic",
	  "robots.txt" => "code type = robots",
	  "Ruby" => "code type = ruby",
	  "SAS" => "code type = sas",
	  "Scheme" => "code type = scheme",
	  "SDLBasic" => "code type = sdlbasic",
	  "Smarty" => "code type = smarty",
	  "SQL" => "code type = sql",
	  "T-SQL" => "code type = tsql",
	  "VB.NET" => "code type = vbnet",
	  "Visual BASIC" => "code type = vb",
	  "Visual Fox Pro" => "code type = visualfoxpro",
	  "XML" => "code type = xml");

?>

      <option style="font-weight: bold;" class="taille_titre" selected="selected">Code</option>

<?php

      foreach($codesAvailable as $codeName=>$codeValue){
echo '<option value="'.$codeValue.'">'.$codeName.'</option>'."\n";
      }

?>

      </select>
	  
	  </div></div>


<?php

      /*<option value="code type = css">Css</option>
	  <option value="code type = js">Javascript</option>
	  <option value="code type = html">(X)Html</option> */

	  }

?>

<?php

      if(!isset($_tab['smiley']) || $_tab['smiley'] == true)
	  {

?>
	  <div class="formulaire">
	  <div class="formulaire_left">smiley :</div>
	  <div class="formulaire_right">

      <img src="../design/<?php echo getDesignName(); ?>/images/smileys/clin.png" title="clin" alt="clin" onclick="javascript:smilies(' :clin: ','<?php echo $id; ?>');return(false)" />
	  <img src="../design/<?php echo getDesignName(); ?>/images/smileys/blink.gif" title="blink" alt="blink" onclick="javascript:smilies(' :blink: ','<?php echo $id; ?>');return(false)" />
	  <img src="../design/<?php echo getDesignName(); ?>/images/smileys/heureux.png" title="heureux" alt="heureux" onclick="javascript:smilies(' :heureux: ','<?php echo $id; ?>');return(false)" />
	  <img src="../design/<?php echo getDesignName(); ?>/images/smileys/hihi.png" title="hihi" alt="hihi" onclick="javascript:smilies(' :hihi: ','<?php echo $id; ?>');return(false)" />
	  <img src="../design/<?php echo getDesignName(); ?>/images/smileys/huh.png" title="huh" alt="huh" onclick="javascript:smilies(' :huh: ','<?php echo $id; ?>');return(false)" />
	  <img src="../design/<?php echo getDesignName(); ?>/images/smileys/langue.png" title="langue" alt="langue" onclick="javascript:smilies(' :langue: ','<?php echo $id; ?>');return(false)" />
	  <img src="../design/<?php echo getDesignName(); ?>/images/smileys/mechant.png" title="méchant" alt="méchant" onclick="javascript:smilies(' :mechant: ','<?php echo $id; ?>');return(false)" />
	  <img src="../design/<?php echo getDesignName(); ?>/images/smileys/rire.gif" title="rire" alt="rire" onclick="javascript:smilies(' :rire: ','<?php echo $id; ?>');return(false)" />
	  <img src="../design/<?php echo getDesignName(); ?>/images/smileys/triste.png" title="triste" alt="triste" onclick="javascript:smilies(' :triste: ','<?php echo $id; ?>');return(false)" />
	  <img src="../design/<?php echo getDesignName(); ?>/images/smileys/siffle.png" title="siffle" alt="siffle" onclick="javascript:smilies(' :siffle: ','<?php echo $id; ?>');return(false)" />
	  <img src="../design/<?php echo getDesignName(); ?>/images/smileys/smile.png" title="smile" alt="smile" onclick="javascript:smilies(' :smile: ','<?php echo $id; ?>');return(false)" />
	  <img src="../design/<?php echo getDesignName(); ?>/images/smileys/unsure.gif" title="unsure" alt="unsure" onclick="javascript:smilies(' :unsure: ','<?php echo $id; ?>');return(false)" />

	  </div></div>


<?php

      }

?>

<?php
      if(!isset($_tab['textareaValue']) || $_tab['textareaValue']==true)
	  { 

?>

      <div class="formulaire">
	  <div class="formulaire_left">Message :</div>
	  <div class="formulaire_right">

      <textarea tabindex="20" rows="20" cols="60" id="<?php echo $id; ?>" name="<?php echo $name; ?>"><?php echo (isset($_tab["textareaValue"])) ? $_tab["textareaValue"] : ""; ?></textarea>
	  
	  </div></div>

<?php

      }

?>

<?php

      // si admin, ajout motif

	  if(isset($_GET["adm"]) && $_GET["adm"]==1)
	  {

?>

      <div class="formulaire">
	  <div class="formulaire_left">Motif :</div>
	  <div class="formulaire_right">

      <input type="text" name="vMotif" />

	  </div></div>

<?php

      }

?>
  
<?php
      if(!isset($_tab['option']) || $_tab['option']==true)
	  { 

?>

	  <div class="formulaire">
	  <div class="formulaire_left">Option :</div>
	  <div class="formulaire_right">

      <input type="radio" />Pas de notification.
<br />
      <input type="radio" />Être prévenu par e-mail lorsqu'une réponse est ajoutée à votre sujet.

	  </div></div>

<?php

      }

?>

<?php

      if(!isset($_tab['envoyer']) || ($_tab['envoyer'] == true || (isset($_tab['previsualisation']) && $_tab['previsualisation']==true)))
	  { 

?>

       <div class="submit">
      <input type="submit" value="envoyer la réponse" name="send" />
<?php if($_tab['previsualisation']): ?>
      <input type="button" value="Prévisualisation du message" onclick="previsualisation('mperso','<?php echo urlencode($pagename); ?>');return false;" />
	  
	  </div>

<?php      endif; ?>
<?php

      }

?>























      <!-- on crée un div avec quelques caractéristiques, on lui donne un nom et on ne le remplit pas, on le laisse vide -->
	  <!-- <script type="text/javascript">

      function validation(target,target2)
	  {
	  if(target==null)
	  return true
	  else
	  var sujet = $('#'+target).html()?$("#"+target).val().length>3:true;
	  if($("#"+target2).val().length >3 && sujet)
	  {
	  $("#bbcode_form").submit();
	  }
	  else
	  {
	  $("#bbcode_info").html('<font color="red">Vous n\'avez pas saisi correctement le sujet ou le message !!</font>');
	  }
	  }
	  </script>-->

<?php

      if(isset($_tab['sujet']))
	  $sujet = "'bbcode_sujet'";
	  else
	  $sujet = "null";

?>

      </form>

<?php

      } 
	  }

?>

<?php

     // if($_tab['sortieDescription']==true || $_tab['formCourant']==true): 

	  function getForm($id)
	  {
	  return  '
	  <input type="image" src="../design/Basic/images/formulaires/gras.png" onclick="javascript:bbcode(\'&lt;gras&gt;\', \'&lt;/gras&gt;\',\''.$id.'\');return(false)" alt="Gras" />
	  <input type="image" src="../design/Basic/images/formulaires/italique.png" onclick="javascript:bbcode(\'&lt;italique&gt;\', \'&lt;/italique&gt;\',\''.$id.'\');return(false)" class="italique" alt="Italique" title="Italique" />
	  <input type="image" src="../design/Basic/images/formulaires/souligner.png" onclick="javascript:bbcode(\'&lt;souligner&gt;\', \'&lt;/souligner&gt;\',\''.$id.'\');return(false)" class="souligner" alt="Souligner" title="Souligner" />
	  <input type="image" src="../design/Basic/images/formulaires/barrer.png" onclick="javascript:bbcode(\'&lt;barrer&gt;\', \'&lt;/barrer&gt;\',\''.$id.'\');return(false)" class="barrer" alt="Barrer" title="Barrer" />
	  <input type="image" src="../design/Basic/images/formulaires/image.png" onclick="javascript:bbcode(\'&lt;image&gt;\', \'&lt;/image&gt;\',\''.$id.'\');return(false)" alt="Image" title="Image" />
	  <input type="image" src="../design/Basic/images/formulaires/lien.png" onclick="javascript:bbcode(\'&lt;lien&gt;\', \'&lt;/lien&gt;\',\''.$id.'\');return(false)" alt="Lien" title="Lien" />
	  <input type="image" src="../design/Basic/images/formulaires/citation.png" onclick="javascript:bbcode(\'&lt;citation=AUTEUR&gt;\', \'&lt;/citation&gt;\',\''.$id.'\');return(false)" alt="Citation" title="Citation" />
	  <input type="image" src="../design/Basic/images/formulaires/liste.png" onclick="javascript:bbcode(\'&lt;liste&gt;&lt;puce&gt;\', \'\',\''.$id.'\');return(false)" title="liste" alt="liste" />
	  <input type="image" src="../design/Basic/images/formulaires/mail.png" onclick="javascript:bbcode(\'&lt;mail&gt;\', \'&lt;/mail&gt;\',\''.$id.'\');return(false)" alt="Mail" title="Mail" />
	  <input type="image" src="../design/Basic/images/formulaires/secret.png" onclick="javascript:bbcode(\'&lt;secret&gt;\', \'&lt;/secret&gt;\',\''.$id.'\');return(false)" alt="Secret" title="Secret" />
	  <input type="image" src="../design/Basic/images/formulaires/information.png" onclick="javascript:bbcode(\'&lt;information&gt;\', \'&lt;/information&gt;\',\''.$id.'\');return(false)" alt="Information" title="Information" />
	  <input type="image" src="../design/Basic/images/formulaires/attention.png" onclick="javascript:bbcode(\'&lt;attention&gt;\', \'&lt;/attention&gt;\',\''.$id.'\');return(false)" alt="Attention" title="Attention" />
	  <input type="image" src="../design/Basic/images/formulaires/erreur.png" onclick="javascript:bbcode(\'&lt;erreur&gt;\', \'&lt;/erreur&gt;\',\''.$id.'\');return(false)" alt="Erreur" title="Erreur" />
	  <input type="image" src="../design/Basic/images/formulaires/question.png" onclick="javascript:bbcode(\'&lt;question&gt;\', \'&lt;/question&gt;\',\''.$id.'\');return(false)" alt="Question" title="Question" />

	  <select title="position" name="position" onchange="javascript: bbcode(\'&lt;\' + this.value + \'&gt;\',\'&lt;/position&gt;\',\''.$id.'\'); this.selectedIndex = 0;">
	  <option style="font-weight: bold;" class="position_titre" selected="selected">Position</option>
	  <option value="position valeur = gauche">Gauche</option>
	  <option value="position valeur = centrer">Centrer</option>
	  <option value="position valeur = droite">Droite</option>
	  <option value="position valeur = justifier">Justifier</option>
	  </select>

	  <select title="flottant" name="flottant" onchange="javascript: bbcode(\'&lt;\' + this.value + \'&gt;\',\'&lt;/flottant&gt;\',\''.$id.'\'); this.selectedIndex = 0;">
	  <option style="font-weight: bold;" class="position_titre" selected="selected">Flottant</option>
	  <option value="flottant valeur = A droite">A droite</option>
	  <option value="flottant valeur = A gauche">A gauche</option>
	  </select>

	  <select title="taille" name="taille" onchange="javascript: bbcode(\'&lt;\' + this.value + \'&gt;\',\'&lt;/taille&gt;\',\''.$id.'\'); this.selectedIndex = 0;">
	  <option style="font-weight: bold;" class="taille_titre" selected="selected">Taille</option>
	  <option value="taille valeur = ttgrand">Très très grand</option>
	  <option value="taille valeur = tgrand">Très grand</option>
	  <option value="taille valeur = grand">Grand</option>
	  <option value="taille valeur = petit">Petit</option>
	  <option value="taille valeur = tpetit">Très petit</option>
	  <option value="taille valeur = ttpetit">Très très petit</option>
	  </select>

	  <select title="Couleur" name="Couleur" onchange="javascript: bbcode(\'&lt;\' + this.value + \'&gt;\',\'&lt;/couleur&gt;\',\''.$id.'\'); this.selectedIndex = 0;">
	  <option style="font-weight: bold;" value="couleur_titre" selected="selected">Couleur</option>
	  <option style="color:#000000;" value="couleur nom = noir">Noir</option>
	  <option style="color:#000099;" value="couleur nom = bleu">Bleu</option>
	  <option style="color:#162277" value="couleur nom = bleu foncé">Bleu Foncé</option>
	  <option style="color:#A52A2A;" value="couleur nom = marron">Marron</option>
	  <option style="color:#757575;" value="couleur nom = gris">Gris</option>
	  <option style="color:#404040;" value="couleur nom = gris foncé">Gris Foncé</option>
	  <option style="color:#808080;" value="couleur nom = gris clair">Gris Clair</option>
	  <option style="color:#FFD700;" value="couleur nom = or">Or</option>
	  <option style="color:#FF0000;" value="couleur nom = rouge">Rouge</option>
	  <option style="color:#177531;" value="couleur nom = vert foncé">Vert Foncé</option>
	  <option style="color:#33CC00;" value="couleur nom = vert">Vert</option>
	  <option style="color:#ff88f8;" value="couleur nom = rose">Rose</option>
	  <option style="color:#CCCCCC;" value="couleur nom = argent">Argent</option>
	  <option style="color:#FFFF00;" value="couleur nom = jaune">Jaune</option>
	  <option style="color:#F73DF7;" value="couleur nom = fushia">Fushia</option>
	  <option style="color:#CC33CC;" value="couleur nom = violet">Violet</option>
	  <option style="color:#A7A700;" value="couleur nom = olive">Olive</option>
	  <option style="color:#66FFFF;" value="couleur nom = azur">Azur</option>
	  <option style="color:#FFC800;" value="couleur nom = orange">Orange</option>
	  <option style="color:navy;" value="couleur nom = marine">Marine</option>
	  <option style="color:aqua;" value="couleur nom = turquoise">Turquoise</option>
	  </select>

	  <select title="police" name="police" onchange="javascript: bbcode(\'&lt;\' + this.value + \'&gt;\',\'&lt;/police&gt;\',\''.$id.'\'); this.selectedIndex = 0;">
	  <option style="font-weight: bold;" class="police_titre" selected="selected">Police</option>
	  <option value="police valeur = arial">Arial</option>
	  <option value="police valeur = times">Times</option>
	  <option value="police valeur = courrier">Courrier</option>
	  <option value="police valeur = impact">Impact</option>
	  <option value="police valeur = geneva">Geneva</option>
	  <option value="police valeur = optima">Optima</option>
	  </select>

	  <select title="semantique" name="semantique" onchange="javascript: bbcode(\'&lt;\'+this.value+\'&gt;\',\'&lt;/\'+this.value+\'&gt;\',\''.$id.'\'); this.selectedIndex = 0;">
	  <option style="font-weight: bold;" class="taille_titre" selected="selected">Sémantique</option>
	  <option value="titre1">Titre 1</option>
	  <option value="titre2">Titre 2</option>
	  </select>

	  <img src="../design/Basic/images/smileys/clin.png" title="clin" alt="clin" onclick="javascript:smilies(\' :clin: \',\''.$id.'\');return(false)" />
	  <img src="../design/Basic/images/smileys/blink.gif" title="blink" alt="blink" onclick="javascript:smilies(\' :blink: \',\''.$id.'\');return(false)" />
	  <img src="../design/Basic/images/smileys/heureux.png" title="heureux" alt="heureux" onclick="javascript:smilies(\' :heureux: \',\''.$id.'\');return(false)" />
	  <img src="../design/Basic/images/smileys/hihi.png" title="hihi" alt="hihi" onclick="javascript:smilies(\' :hihi: \',\''.$id.'\');return(false)" />
	  <img src="../design/Basic/images/smileys/huh.png" title="huh" alt="huh" onclick="javascript:smilies(\' :huh: \',\''.$id.'\');return(false)" />
	  <img src="../design/Basic/images/smileys/langue.png" title="langue" alt="langue" onclick="javascript:smilies(\' :langue: \',\''.$id.'\');return(false)" />
	  <img src="../design/Basic/images/smileys/mechant.png" title="méchant" alt="méchant" onclick="javascript:smilies(\' :mechant: \',\''.$id.'\');return(false)" />
	  <img src="../design/Basic/images/smileys/rire.gif" title="rire" alt="rire" onclick="javascript:smilies(\' :rire: \',\''.$id.'\');return(false)" />
	  <img src="../design/Basic/images/smileys/triste.png" title="triste" alt="triste" onclick="javascript:smilies(\' :triste: \',\''.$id.'\');return(false)" />
	  <img src="../design/Basic/images/smileys/siffle.png" title="siffle" alt="siffle" onclick="javascript:smilies(\' :siffle: \',\''.$id.'\');return(false)" />
	  <img src="../design/Basic/images/smileys/smile.png" title="smile" alt="smile" onclick="javascript:smilies(\' :smile: \',\''.$id.'\');return(false)" />
	  <img src="../design/Basic/images/smileys/unsure.gif" title="unsure" alt="unsure" onclick="javascript:smilies(\' :unsure: \',\''.$id.'\');return(false)" />

	  <textarea tabindex="20" rows="20" cols="60" id="'.$id.'" name="'.$id.'"></textarea>';

	  }

	  

?>